package com.example.demo.exception;

import com.example.demo.exception.base.AbstractException;

/**
 * 返回视图提示异常
 * @author hankChan
 *         2018/1/3 0003.
 */
public class ViewException extends AbstractException {

    private static final long serialVersionUID = 3524596493491326163L;

    public ViewException(String requestId, String msg) {
        super(requestId, msg);
        this.msg = "request_id=" + requestId + ",ViewException:$$$" + msg + "$$$";
    }

    public ViewException(String requestId, String code, String msg) {
        super(requestId, code, msg);
        this.code = code;
        this.msg = "request_id=" + requestId + ",ViewException:$$$" + msg + "$$$";
    }

    public String getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
